package com.baohua.service;

import java.util.Map;

import com.baohua.exception.BaohuaSystemException;
import com.baohua.model.Supplier;

/**
 * 供应商Service接口
 * @author czp
 *
 */
public interface SupplierService {

	/**
	 * 查询供应商列表
	 * @return
	 */
	public Map querySupplier(Supplier supplier, int page, int pageSize);
	
	/**
	 * 根据供应商编号查询供应商
	 * @param staffNo
	 * @return
	 */
	public Supplier querySupplierBySupplierNo(String supplierNO) throws BaohuaSystemException;
	
	
	/**
	 * 增加供应商
	 * @param staff
	 */
	public void addSupplier(Supplier supplier) throws BaohuaSystemException;
	
	/**
	 * 删除供应商
	 * @param staff
	 */
	public void delSupplier(int supplierID) throws BaohuaSystemException;
	
	/**
	 * 修改供应商
	 * @param staff
	 */
	public void updateSupplier(Supplier supplier) throws BaohuaSystemException;
	
	/**
	 * 统计供应商数
	 * @return
	 */
	public long countSupplier(String sql);
	
	/**
	 * 根据供应商Id进行查询
	 * @param staffId
	 * @return
	 * @throws BaohuaSystemException
	 */
	public Supplier querySupplierById(int supplierID) throws BaohuaSystemException;

}
